package com.syj.collect.utils;

import android.widget.ImageView;

import com.bumptech.glide.Glide;
import com.bumptech.glide.request.RequestOptions;
import com.syj.collect.app.R;

public class GlideUtils {

    /**
     *    正常加载t图片
     * @param imageView
     * @param url
     */
    public  static  void Image(ImageView imageView, String url){
//
        RequestOptions options =  new RequestOptions()
                .placeholder(R.drawable.my_head);
        Glide.with(imageView.getContext()).load(url).apply(options).into(imageView);
    }
    public  static  void PicImage(ImageView imageView, String url){
//
        RequestOptions options =  new RequestOptions()
                .placeholder(R.drawable.addpic);
        Glide.with(imageView.getContext()).load(url).apply(options).into(imageView);
    }







    public  static  void drawimg(ImageView imageView, String url){

//        RequestOptions options =  new RequestOptions()
//                .placeholder(R.drawable.myhead);
//        Glide.with(imageView.getContext()).load(url).apply(options).into(imageView);
    }

}
